tools/libxc: common restore code
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Feb 2015 18:20:23 +0000 (18:20 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 May 2015 13:30:47 +0000 (14:30 +0100)
commit93c2ff78adcadbe0f8bda57eeb30b1414c966324
treeec5edd11395d4a30a941959f431db3b1db4e5912
parent0a4d18da0de013ee5201069c714a19da5fbd69e0
tools/libxc: common restore code

Restore a domain from the new format.  This reads and validates the domain and
image header and loads the guest memory from the PAGE_DATA records, populating
the p2m as it does so.

This provides the xc_domain_restore2() function as an alternative to the
existing xc_domain_restore().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
tools/libxc/xc_sr_restore.c